﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="TitleLink.aspx.cs" Inherits="CNVP.JShop.Admin.Template.Operate.TitleLink" ValidateRequest="false"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
<title></title>
        <meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
<meta content="IE=7" http-equiv="X-UA-Compatible" />
<link href="../../Images/Global.css" rel="stylesheet" type="text/css" />
<link type="text/css" href="../../common/option.css" rel="stylesheet"/>
<link type="text/css" href="../../common/thickbox.css" rel="stylesheet"/>
    <script src="../../../Scripts/jquery.js" type="text/javascript"></script>
<script type="text/javascript" language="javascript" src="../../common/thickbox.js"></script>
<script type="text/javascript" language="javascript" src="../../common/option.js"></script>
<script language="javascript" type="text/javascript" src="../Template.js"></script>
<style type="text/css">
.pop_input{width:380px;height:178px;line-height:20px;border:1px solid #CCCCCC}
</style>
</head>
<body style="background:#f7fafb;overflow-x:hidden;">
<form id="form1" runat="server">
<table width="700" border="0" cellspacing="0" cellpadding="0" align="center" class="unit_table">
<tr>
<td valign="top" class="cell_left" width="300">
<fieldset style="width:298px;height:312px;border:1px solid #CCCCCC;"><legend>参数设置</legend>
<table width="280" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td style="height:10px" colspan="2"></td>
</tr>
<tr>
<td height="30" colspan="2">
<asp:DropDownList ID="DropStyle" runat="server" Width="276px">
<asp:ListItem Value="" Text="请选择显示样式"></asp:ListItem>
</asp:DropDownList></td>
</tr>
<tr>
<td height="30" colspan="2">
<asp:DropDownList ID="DropColumn" runat="server" Width="276px">
<asp:ListItem Value="" Text="请选择内容来源"></asp:ListItem>
<asp:ListItem Value="1" Text="当前栏目"></asp:ListItem>
<asp:ListItem Value="2" Text="当前栏目的父栏目"></asp:ListItem>
<asp:ListItem Value="3" Text="指定栏目"></asp:ListItem>
<asp:ListItem Value="4" Text="指定栏目的父栏目"></asp:ListItem>
</asp:DropDownList>
</td>
</tr>
<tr style="display:none" id="ShowColumn">
<td width="60" height="30">指定栏目</td>
<td width="220"><asp:TextBox ID="TxtColumnName" runat="server" Width="185px" ReadOnly="true" Enabled="false"></asp:TextBox> <a href="#" onclick="SelectColumn(2);"><img src="../../Images/SelectFile.gif" style="vertical-align:middle;border:0px"/></a>
<input type="hidden" id="HidColumnID" name="HidColumnID" value="<%=_ColumnID %>"/>
</td>
</tr>
<tr>
<td width="60" height="30">输出格式</td>
<td width="220"><asp:CheckBox ID="ChkShowDiv" runat="server" Text="输出DIV"/>
</td>
</tr>
<tr id="ShowTable">
<td width="60" height="30">信息条数</td>
<td width="220"><asp:TextBox ID="TxtCol" runat="server" Width="75px" MaxLength="5" Text="8"></asp:TextBox>
</td>
</tr>
<tr>
<td width="60">信息起始</td>
<td width="220"><asp:TextBox ID="txtStart" runat="server" Width="65px" MaxLength="5" Text="1"></asp:TextBox>（请输入正整数。）</td>
</tr>
</table>
</fieldset>
</td>
<td valign="top" class="cell_left" width="400">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td>
<fieldset style="width:390px;border:1px solid #CCCCCC;height:80px;"><legend>显示效果</legend>
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td style="text-align:center;height:40px"><div id="ShowHTML"></div></td>
</tr>
</table>
</fieldset>
</td>
</tr>
<tr>
<td>
<fieldset style="width:390px;border:1px solid #CCCCCC;height:230px;"><legend>效果源码</legend>
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td>
<asp:Literal ID="LitHTMLCode" runat="server"></asp:Literal><asp:Literal ID="LitLabelCode" runat="server"></asp:Literal>
</td>
</tr>
<tr>
<td style="text-align:center"><asp:TextBox ID="TxtContent" runat="server" TextMode="MultiLine" CssClass="pop_input"></asp:TextBox></td>
</tr>
</table>
</fieldset>
</td>
</tr>
<tr>
<td height="35" style="text-align:right;"><asp:Button ID="Button1" runat="server" Text="保  存" class="pop_button" onclick="Button1_Click"/>
<input id="CloseBtn" type="button" value="关  闭" class="pop_button" onclick="top.removeTB();"/></td>
</tr>
</table>
</td>
</tr>
</table>
<script language="javascript" type="text/javascript">
function ShowColumn(obj)
{
	if (obj.value=="3"|obj.value=="4")
	{
		$("#ShowColumn").css('display','');
	}
	else
	{
		$("#ShowColumn").css('display','none');
	    $("#TxtColumnName").attr('value','');
		$("#HidColumnID").attr('value','');
	}
}
function ShowTable(obj)
{
	if (obj.value=="Table")
	{
		$("#ShowTable").css('display','');
	}
	else
	{
		$("#ShowTable").css('display','none');
	}
}
</script>
</form>
</body>
</html>
